mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-19 00:01:19 +00:00
1.6 KiB
1.6 KiB
Architecture Notes: Master Thinker Edition
1. Data Flow Map (Request-to-Execution)
- User Input: Received via the React Webview.
- Context Assembly:
ClineProvider.tscallssrc/core/task/Task.tsto generate the System Prompt. - Decision: The LLM selects a tool.
presentAssistantMessage.tsorchestrates the tool call. - Execution:
WriteToFileTool.tsexecutes thehandle()method to modify the file system.
2. Governance Interception Points
- Pre-Hook (Phase 1/2): Located in
WriteToFileTool.tsinsidehandle(). This will block execution if.orchestration/active_intents.yamldoes not have anin-progressstatus. - Post-Hook (Phase 3): Located at the end of
handle()after a successful write. This will trigger theagent_trace.jsonllogger to hash the new content.
3. Intent-Code Gap Analysis
Standard Git tracks "What" changed but lacks the "Why." By using a sidecar orchestration layer, we map every Abstract Syntax Tree (AST) change to a specific Requirement ID. This prevents "Context Rot" where agents lose track of architectural constraints during long-running tasks.