Charlie’s Status Report for 4/25

This week, I focused on revising the server architecture and refactoring the state bridge to address limitations from the previous single-channel WebSocket model between the web client and Rust engine. While the earlier design worked for the React frontend, integrating additional hardware components such as CV-based board state detection and LED control required a more robust distributed architecture to support asymmetric clients. The updated design establishes the bridge as the single orchestrator and external gateway, with the engine reduced to pure game logic and stateless analysis. All components—including UI, CV, LED, and coaching—now interact through a unified bridge-owned command/event model, ensuring consistency and eliminating split-brain state. This redesign also ensures that all authoritative moves are broadcast as events, prevents helper operations from mutating live state, and enables CV-detected moves to act as first-class command inputs. I also revised the LED light configuration on the client to better match the physical board design, improving visual alignment between digital and hardware feedback.

In parallel, I continued developing the agent orchestration system, implementing a fast-path execution flow and iterating on decision routing based on board state. I integrated the Go-based coaching service into the new architecture and expanded integration testing across the bridge, client, and agent layers. I also conducted additional testing on the RAG pipeline, fixing issues with context injection and improving prompt constraints for token usage. . For better agent observability, I added a visualization and logging panel to display tool usage and track all agent actions in real time. On the data side, I collected more game position samples for puzzle generation and began revising the puzzle curator agent and state detection logic.

Overall, my progress is mostly on track, with continued focus on stabilizing the new architecture and improving system reliability.

Charlie’s Status Report for 4/18

This week, I rewrote the agent orchestration framework in Go, introducing structured agent state management along with defined skills and tools integrated with the engine. This significantly improved observability and debugging, as the system now uses Prometheus and Grafana along with a dynamic React dashboard to visualize agent execution, parallel node activity, and tool usage in real time. In addition, to improve user interaction beyond speech-to-text input, I developed a virtual avatar using Three.js that maps engine evaluations to animations, providing more intuitive and engaging feedback to the user during gameplay.

During development, I identified limitations in the current embedding strategy for fine-tuning, particularly with Qwen 7B, where dense vectors made it difficult to align outputs with evaluation signals. As a result, I pivoted toward a heuristic-first approach for move explanation generation, incorporating factors such as game phase, pawn structure, center control, and king safety. I also implemented a LoRA fine-tuning pipeline using expert commentary data, but am delaying full training until the heuristic mapping layer is complete.

Throughout this capstone, I learned several new tools and concepts, including agentic frameworks, observability tools like Prometheus and Grafana, and LoRA fine-tuning techniques. I primarily relied on informal learning strategies such as reading Medium articles, technical blogs, and documentation to quickly get up to speed and apply these tools effectively.

Charlie’s Status Report for 4/4

This week, I continued working on the LLM agent orchestration pipeline and prompt engineering, focusing on improving reasoning quality and reducing hallucinations in move explanations. I also explored deployment options using Amazon Bedrock and researched LoRA fine-tuning as a potential approach for adapting models to the Xiangqi domain. Through this investigation, I identified a key limitation in standard LLMs: lack of spatial awareness when interpreting raw board representations such as FEN. To address this, I designed a feature engineering approach that converts board states into a structured relational representation, encoding piece interactions, threat maps, palace dynamics, and pawn structures. This effectively transforms the problem from spatial reasoning into a relational reasoning task, which aligns better with transformer-based models.

Additionally, I began prototyping this relational preprocessing pipeline and integrating it into the agent workflow alongside RAG. The goal is to provide the LLM with structured, verifiable context to improve consistency and interpretability of generated explanations. This approach reduces reliance on implicit spatial reasoning and instead supplies explicit constraints derived from the engine, helping mitigate hallucinations. Moving forward, I plan to refine the feature extraction process, validate its impact on explanation accuracy, and continue improving prompt design and integration with the full system pipeline.

I plan to evaluate the LLM orchestration system using  multiple metrics and  structured logging and agent visualization. First, I will measure explanation correctness by checking whether the LLM’s suggested moves and reasoning align with the engine’s validated outputs. I will also track hallucination rate, calculated from the percentage of responses that include invalid moves, incorrect checkmate claims, or inconsistencies with the game state. I will also evaluate consistency by running repeated prompts on the same position and measuring differences in outputs. For performance, time between text and move input and when response is returned  is measured  to ensure we meet the real-time feedback latency. For debugging purpose, I will implement detailed agent logging of intermediate steps, including retrieved context, tool usage, and sub-agent calls, and use this data to compute metrics such as tool-call accuracy and pipeline success rate . Visualization tools will complement this by mapping explanations to board states and candidate moves, enabling faster debugging, but evaluation will remain grounded in measurable benchmarks.

Charlie’s Report for 3/28

This week, I focused on improving the engine’s move generation performance by applying additional optimization techniques such as quiescence search (Q-search) and transposition table lookups (TTLookup). These changes significantly reduced the effective branching factor and improved overall search efficiency, especially when combined with move ordering strategies. In parallel, I continued developing the agent orchestration pipeline by incorporating retrieval-augmented generation (RAG) and experimenting with prompt designs for more accurate and coherent explanation generation.

I also integrated the full pipeline with the frontend, enabling end-to-end interaction between the UI, engine, and explanation system. Additional integration tests were added to validate system behavior and ensure consistency across components. Moving forward, I will continue refining prompt engineering to improve explanation quality and further optimize the interaction between the search engine outputs and the LLM-generated reasoning.

Charlie’s Progress Report for 3/14

This week, I finished building the frontend user interface for the chess application and integrated it with the existing backend components. The interface now supports visualization of the board state and user interactions with the system, allowing moves and engine responses to be displayed in real time. In addition, I began working on the LLM agent state management and retrieval-augmented generation pipeline, researching how to structure context and maintain consistent reasoning for move explanations.

My progress this week is generally on schedule. Next week, I plan to conduct user testing to evaluate the usability of the UI and gather feedback on interaction design. I will also continue developing the agent state management and RAG components to improve how the system generates and maintains contextual explanations for gameplay decisions.

Charlie’s status report for 3/7

This week, I focused on building the frontend user interface using React and integrating it with the backend systems. I implemented core UI components for interacting with the chessboard and began setting up integration tests to verify correct communication between the frontend and backend. These tests help ensure that board state updates, move validation, and engine responses are properly synchronized across the system.

In addition to development work, I conducted further research into implementing retrieval-augmented generation (RAG) and agent state management using LangChain. This exploration focuses on how the system can maintain contextual knowledge and structured reasoning when generating explanations for moves. The goal is to design a pipeline where the engine outputs and relevant game context can be retrieved and incorporated into the LLM’s reasoning process while maintaining consistency with the validated move set.

Charlie’s Status Report for 2/21

This week, I have completed our Design Presentation and begun to incorporate feedback into our system architecture. On the implementation front, I have completed the rule validation layer and full game state tracking, including turn management and legal move constraints. I have also started working on the move generation system, organizing it in a way that allows it to cleanly interface with the existing validation system and future search algorithms.

Concurrently, I have begun working on unit tests to ensure correctness and started to benchmark the current engine performance. I started working on the user interface for the chessboard to enable visualization and interaction with the engine. Because of the extra time needed for proper testing and integration, I am currently a little behind schedule.

Charlie’s Status Report for 2/14

This week, I focused on preparing the Design Presentation and refining the system’s user interaction model. In addition to slide development and updating system diagrams, I designed and began implementing the user interface for the chessboard, including real-time board state visualization synchronized with the engine. A key design change was shifting from a primarily voice-controlled interaction model to an interface that includes explicit on-screen controls alongside the live camera feed and board state display. This adjustment improves usability, reduces ambiguity in user input, and provides more reliable interaction during testing and demonstrations while still supporting guided feedback from the engine.

Charlie’s Weekly Report for 2/7

This week, I focused on refining the architecture for the engine’s decision-making system by researching search-based algorithms and LLM orchestration. Instead of fully switching to a deep reinforcement learning approach as originally planned, I proposed a more practical and reliable baseline using Negamax search with alpha–beta pruning and fixed depth for efficient and deterministic move generation. I also planned an extension where machine learning is used only for position evaluation and move ordering, trained offline using Xiangqi datasets. This hybrid approach keeps the core engine stable and debuggable while still allowing performance improvements from learned heuristics.

I also looked into LLM-based explanation generation using pruned move sequences from the search as structured context for reasoning about multi-move strategies. Initial testing with vLLM and Gemini showed frequent hallucinations, including incorrect checkmate claims, so I plan to constrain the model to validated candidate moves and add rule-based verification to ensure explanations match the engine’s output. My progress is on schedule, and next week I will begin implementing the Negamax search, integrating it with the current move generator, and prototyping the evaluation interface for future ML integration.

Charlie’s Status Report for 1/31

For this week, I have started the implementation and system level design for the Chinese Chess (Xiangqi) guided engine using the Rust programming language. The primary focus this week was on creating a solid backend infrastructure that emphasizes correctness, performance, and extendability for the upcoming AI-guided functionalities.

I have designed and implemented the board state representation by utilizing a constant size array, which enables constant time and cache-efficient access to the pieces on the board. Additionally, I have implemented the rule validation part, which ensures legal moves, captures, blocking, and specific rules for different pieces. Lastly, I have implemented the complete move generation logic for all types of pieces, which ensures correctness according to Chinese Chess rules, such as palace rules, river rules, and cannon rules. Alongside this, I have conducted some research on the move generation strategy, where I have compared different strategies such as traditional search-based methods like minimax, alpha-beta pruning, and inference-based methods.

My progress this week has been on track, and all the planned foundational components, such as board state representation, rule validation, and basic move generation, have been implemented as planned, providing a solid foundation for the upcoming implementation.

For the upcoming week, I will be implementing the full game state management, which includes turn management, move history, and terminal state detection, such as check, checkmate, and draw states. Alongside this, I will be implementing the search-based move generation framework and integrating it with the existing rule validation system.